package com.seata.demo.order.service;


import java.math.BigDecimal;

public interface SagaOrderService {

    /**
     * 启动Saga事务
     */
    void startSagaTransaction(String userId, String commodityCode, Integer count, BigDecimal money);

    /**
     * 创建订单
     */
    void createOrder(String userId, String commodityCode, Integer count, BigDecimal money);

    /**
     * 取消订单（补偿方法）
     */
    void cancelOrder(String userId, String commodityCode, Integer count, BigDecimal money);
}
